package com.ruoyi.OutboundManagement.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.OutboundManagement.mapper.OtherOutboundMapper;
import com.ruoyi.OutboundManagement.domain.OtherOutbound;
import com.ruoyi.OutboundManagement.service.IOtherOutboundService;

/**
 * 其他出库管理Service业务层处理
 * 
 * @author admin
 * @date 2024-07-04
 */
@Service
public class OtherOutboundServiceImpl implements IOtherOutboundService 
{
    @Autowired
    private OtherOutboundMapper otherOutboundMapper;

    /**
     * 查询其他出库管理
     * 
     * @param otherId 其他出库管理主键
     * @return 其他出库管理
     */
    @Override
    public OtherOutbound selectOtherOutboundByOtherId(Long otherId)
    {
        return otherOutboundMapper.selectOtherOutboundByOtherId(otherId);
    }

    /**
     * 查询其他出库管理列表
     * 
     * @param otherOutbound 其他出库管理
     * @return 其他出库管理
     */
    @Override
    public List<OtherOutbound> selectOtherOutboundList(OtherOutbound otherOutbound)
    {
        return otherOutboundMapper.selectOtherOutboundList(otherOutbound);
    }

    /**
     * 新增其他出库管理
     * 
     * @param otherOutbound 其他出库管理
     * @return 结果
     */
    @Override
    public int insertOtherOutbound(OtherOutbound otherOutbound)
    {
        otherOutbound.setCreateTime(new Date());
        return otherOutboundMapper.insertOtherOutbound(otherOutbound);
    }

    /**
     * 修改其他出库管理
     * 
     * @param otherOutbound 其他出库管理
     * @return 结果
     */
    @Override
    public int updateOtherOutbound(OtherOutbound otherOutbound)
    {
        return otherOutboundMapper.updateOtherOutbound(otherOutbound);
    }

    /**
     * 批量删除其他出库管理
     * 
     * @param otherIds 需要删除的其他出库管理主键
     * @return 结果
     */
    @Override
    public int deleteOtherOutboundByOtherIds(Long[] otherIds)
    {
        return otherOutboundMapper.deleteOtherOutboundByOtherIds(otherIds);
    }

    /**
     * 删除其他出库管理信息
     * 
     * @param otherId 其他出库管理主键
     * @return 结果
     */
    @Override
    public int deleteOtherOutboundByOtherId(Long otherId)
    {
        return otherOutboundMapper.deleteOtherOutboundByOtherId(otherId);
    }
}
